package org.zoomdev.zoom.dao.adapters.parameter;

import org.zoomdev.zoom.dao.adapters.ParameterAdapter;

import java.sql.PreparedStatement;
import java.sql.SQLException;

// 双精度浮点型适配器
public class DoubleParameterAdapter implements ParameterAdapter<Double> {

    @Override
    public void setNonnullParameter(PreparedStatement ps, int index, Double data) throws SQLException {
        ps.setDouble(index, data);
    }
}
